import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
const history = createWebHistory();
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: () => import('./views/index.vue'),
  },
  {
    path: '/page1',
    name: 'page1',
    component: () => import('./views/page1.vue'),
  },
];
const router = createRouter({
  history,
  routes,
});
export default router;
